package com.zros.modules.business.mapper;

import java.util.List;
import java.util.Map;

import org.apache.ibatis.annotations.Param;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.zros.common.api.vo.Select;
import com.zros.modules.business.entity.Channel;
import com.zros.modules.business.entity.ChannelType;
import com.zros.modules.business.entity.Course;
import com.zros.modules.business.entity.Department;
import com.zros.modules.business.entity.Teacher;
import com.zros.modules.system.entity.Organization;
import com.zros.modules.system.entity.User;

/**
 * <p>
 * 下拉框查询 Mapper 接口
 * </p>
 *
 * @author pangyinqiang
 * @since 2019-04-22
 */
public interface SelectMapper extends BaseMapper<Select> {
	
	/**
     * 查询校区列表
     * @param 组织类型key
     * @param 用户id 
     * @return
     */
	List<Organization> queryOrgSelect(Map<String,String> selectMap);
	
	/**
     * 根据orgId查询科系列表
     * @param orgId
     * @return
     */
	List<Department> queryDepSelectByOrgId(Map<String, Long> selectMap);
	
	/**
     * 根据depId查询课程列表
     * @param depId
     * @return
     */
	List<Course> queryCourseSelectByDepId(Long depId);
	
	/**
     * 查询老师列表
     * @param orgId
     * @param courseId
     * @return
     */
	List<Teacher> queryTeacherSelect(Map<String, Long> selectMap);
	
	/**
     * 根据orgId查询用户列表
     * @param orgId
     * @return
     */
	List<User> queryUserSelectByOrgId(Long orgId);
	
	/**
     * 根据orgId查询渠道类型
     * @param orgId
     * @return
     */
	List<ChannelType> queryChannelTypeSelectByOrgId(Map<String, Long> selectMap);
	
	/**
     * 根据channelTypeId查询渠道
     * @param channelTypeId
     * @return
     */
	List<Channel> queryChannelSelectByTypeId(Long channelTypeId); 

}
